package com.boge.study.design_pattern.proxy.static_proxy.poly;

/**
 * 聚合代理
 */
public class CarLogProxy implements CarService {
	
	private CarService carService;
	
	public CarLogProxy(CarService carService) {
		super();
		this.carService = carService;
	}

	@Override
	public void move() {
		System.out.println("日志开始...");
		carService.move();
		System.out.println("日志结束...");
	}

}
